package com.coco.bargain.feign;

import com.coco.bargain.pojo.TbUser;
import com.coco.common.result.CommonResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "coco-user")
@RequestMapping("/user")
public interface UserFeignService {

    @GetMapping("/findOne/{id}")
    public CommonResponse<TbUser> findOne(@PathVariable("id") Long id);
}
